package com.tiance.demo.service.mysql.bo.pageundolog;

import com.tiance.demo.service.mysql.bo.Page;
import com.tiance.demo.service.mysql.constants.UndoLogPageType;

/**
 * undo日志的页信息, 不包含file header和file tailer
 */
public class PageUndoLog extends Page {

    private UndoLogPageHeader undoLogPageHeader;

    private UndoLogSegmentHeader undoLogSegmentHeader;

    public PageUndoLog(byte[] bytes) {
        super(bytes);
    }

    public UndoLogPageHeader getUndoLogPageHeader() {
        return undoLogPageHeader;
    }

    public void setUndoLogPageHeader(UndoLogPageHeader undoLogPageHeader) {
        this.undoLogPageHeader = undoLogPageHeader;
    }

    public UndoLogSegmentHeader getUndoLogSegmentHeader() {
        return undoLogSegmentHeader;
    }

    public void setUndoLogSegmentHeader(UndoLogSegmentHeader undoLogSegmentHeader) {
        this.undoLogSegmentHeader = undoLogSegmentHeader;
    }
}
